package com.sailfish.springbootdemo.service.db7;

import com.alibaba.fastjson.JSONArray;
import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db7.TbDataDictionary;
import com.sailfish.springbootdemo.pojo.db7.TbKnowledgeBaseData;
import com.sailfish.springbootdemo.pojo.db7.TbTaskTemplateData;
import com.sailfish.springbootdemo.pojo.db7.TbTemplate;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;
import java.util.Map;

public interface CommonService {
    List<TbDataDictionary> getAllChildren(List<TbDataDictionary> listAll, List<TbDataDictionary> listDicParent);

    List<TbDataDictionary> getChildren(List<TbDataDictionary> listAll, TbDataDictionary parent);

    List<TbDataDictionary> buildTree(List<TbDataDictionary> list);

    List<TbDataDictionary> buildTree(List<TbDataDictionary> list, String Param_key);

    List<TbTemplate> buildTree2(List<TbTemplate> list);

    List<TbTaskTemplateData> buildTree3(List<TbTaskTemplateData> list);

    List<TbKnowledgeBaseData> buildTree4(List<TbKnowledgeBaseData> list);

    List<TbTemplate> buildTemplateTree(List<TbTemplate> list);

    Result getTaskTemplateData(String templateType, List<Map<String, String>> keyValueMaps);

    Result outputParamTemplate(List<String> namesList);

    Result outputParamTemplate2(Map<String, List<String>> namesList,String excelName);

    double parseFieldWithDefault(String value);
}
